package morenoapp.components.common.table.column;

import javax.swing.table.TableCellRenderer;

/**
 *
 * @author dmitry.mamonov
 */
public class ProxyColumnMeta implements ColumnMeta {
    ColumnMeta derived;

    public ProxyColumnMeta(ColumnMeta derived) {
        this.derived = derived;
    }

    public String getName() {
        return derived.getName();
    }

    public int getPrefferedWidth() {
        return derived.getPrefferedWidth();
    }

    public int getMaximumWidth() {
        return derived.getMaximumWidth();
    }

    public int getMinimumWidth() {
        return derived.getMinimumWidth();
    }

    public boolean isResizable() {
        return derived.isResizable();
    }

    public Class getType() {
        return derived.getType();
    }

    public boolean isEditable() {
        return derived.isEditable();
    }

    public Object getRowValue(int row) {
        return derived.getRowValue(row);
    }

    public void setRowValue(int row, Object value) {
        derived.setRowValue(row, value);
    }

    public TableCellRenderer getTableCellRenderer() {
        return derived.getTableCellRenderer();
    }

    public String getTooltip() {
        return derived.getTooltip();
    }
};